Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Tags
    3. drawbot as module
    Log in to post

    • snaders

      SOLVED Using global variables input
      General Discussion • drawbot as module user interaction variables drawbot package vanilla • • snaders  

      3
      0
      Votes
      3
      Posts
      152
      Views

      snaders

      Hello @gferreira, Thanks for the quick reply. I mistakenly thought vanilla just ment that it didn't have any 'addons'. Like vanilla JS... This makes a lot more sense, will look into that! Thanks a lot!
    • MishaHeesakkers

      SOLVED Are there any tutorials on how to build Drawbot python files via Sublime?
      General Discussion • drawbot as module • • MishaHeesakkers  

      4
      0
      Votes
      4
      Posts
      526
      Views

      gferreira

      @MishaHeesakkers animated gifs can be viewed with a browser. see this example
    • jens

      SOLVED Detect if a module is imported from a DrawBot script?
      General Discussion • modules drawbot as module • • jens  

      4
      0
      Votes
      4
      Posts
      804
      Views

      frederik

      DrawBot could be installed as module, so the import could be available. check: import AppKit appName = AppKit.NSBundle.mainBundle().infoDictionary().get("CFBundleDisplayName") print(appName) appName will be DrawBot, RoboFont or None (in terminal) good luck!
    • Tim

      UNSOLVED Code crashing when using multiprocessing.Pool
      General Discussion • drawbot as module performance • • Tim  

      11
      0
      Votes
      11
      Posts
      3465
      Views

      Tim

      @frederik Sorry for the late reply, I've been on vacation for a while. It's a little rusty after so many days The main focus lays on "main_pool()" "multiprocessing.Pool()" creates, in my 8core case, 8 separate processes (ignore the -1 in the code) Then "p.map()" runs function "run()" 120 times (12 fps times 10 sec. from the settings) but only 8 at one time. As soon as one process is finished it runs the next one. it saves the images separately and can be stitched together into one gif with "exportGif()" More in depth info can be found on: https://docs.python.org/3.4/library/multiprocessing.html My example is only useful if the processes don't have to talk to each other. But on the ref page above should be other examples as well. I'll post the result of my script in a few hours. Well the result in which I've used this method.
    • dyb

      UNSOLVED Generating A LOT of images. 1M+
      General Discussion • drawbot as module performance saving • • dyb  

      1
      0
      Votes
      1
      Posts
      703
      Views

      No one has replied

    • Maarten Idema

      SOLVED Using a virtualenv in Drawbot
      General Discussion • modules drawbot as module • • Maarten Idema  

      12
      0
      Votes
      12
      Posts
      3573
      Views

      justvanrossum

      Oh, I've been trapped by a bot it seems Still, my answer may be useful
    • jesentanadi

      SOLVED Writing / debugging processes
      General Discussion • drawbot as module • • jesentanadi  

      2
      0
      Votes
      2
      Posts
      1312
      Views

      frederik

      for DrawBot it is easy: install it as a module and you can use DrawBot as a package and write code anywhere.